home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
unix
/
mesaamwn.lha
/
Mesa-Amiwin
/
mklib.netbsd
< prev
next >
Wrap
Text File
|
1995-11-29
|
525b
|
28 lines
#!/bin/sh
# Make a NetBSD shared library
# contributed by Michael Graff (explorer@flame.org)
# First argument is name of output library
# Rest of arguments are object files
set -x
LIBRARY=`basename $1 .so`
shift 1
OBJECTS=$*
VERSION="1.2.5"
echo "Building PIC library $LIBRARY"
rm -f ${LIBRARY}_pic.a ${LIBRARY}.so.${VERSION}
ar cq ${LIBRARY}_pic.a ${OBJECTS}
ranlib ${LIBRARY}_pic.a
ld -x -Bshareable -Bforcearchive -o ${LIBRARY}.so.${VERSION} ${LIBRARY}_pic.a
cp ${LIBRARY}_pic.a ${LIBRARY}.so.${VERSION} ../lib